
<aside class="main-sidebar">
  <!-- sidebar: style can be found in sidebar.less -->
  <section class="sidebar">
    <!-- Sidebar user panel -->
    <div class="user-panel">
      <div class="pull-left image">
        <img src="__STATIC__/dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
      </div>
      <div class="pull-left info">
        <p>折叠菜单</p>
        <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
      </div>
    </div>
    <!-- search form -->
    <form action="#" method="get" class="sidebar-form">
      <div class="input-group">
        <input type="text" name="q" class="form-control" placeholder="搜索...">
        <span class="input-group-btn">
          <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
          </button>
        </span>
      </div>
    </form>
    <!-- /.search form -->
    <!-- sidebar menu: : style can be found in sidebar.less -->
    <ul class="sidebar-menu">
      <li class="header">主菜单</li>

    <!-- 法律相关模块 -->
    <li class="treeview {:class_active('Article/ArticleBrand/ArticleCate')? 'active' : ''}">
      <a href="#">
        <i class="fa  fa-book"></i> <span>老赖管理</span>
        <span class="pull-right-container">
          <i class="fa fa-angle-left pull-right"></i>
        </span>
      </a>
      <ul class="treeview-menu">
        <li class="{:class_active('Deadbeat','index')? 'active' : ''}"><a href="{:url('admin/Deadbeat/index')}"><i class="fa  fa-circle-o"></i> 列表</a></li>
      </ul>
    </li>


    <!-- 文章管理模块 -->
    <li class="treeview {:class_active('Article/ArticleBrand/ArticleCate')? 'active' : ''}">
      <a href="#">
        <i class="fa  fa-book"></i> <span>文章管理</span>
        <span class="pull-right-container">
          <i class="fa fa-angle-left pull-right"></i>
        </span>
      </a>
      <ul class="treeview-menu">
        <li class="{:class_active('Article','index')? 'active' : ''}"><a href="{:url('admin/Article/index')}"><i class="fa  fa-circle-o"></i> 资讯列表</a></li>
        <li class="{:class_active('ArticleCate','index')? 'active' : ''}"><a href="{:url('admin/ArticleCate/index')}"><i class="fa  fa-circle-o"></i> 资讯分类</a></li>
      </ul>
    </li>


   

    <!-- AUTH权限升级模块 -->
    {if condition="show_auth('admin/AuthRule/index') || show_auth('admin/AuthGroup/index') || show_auth('admin/AdminUser/index')"}
      <li class="treeview {:class_active('AdminUser/AuthRule/AuthGroup')? 'active' : ''}">
        <a href="#">
          <i class="fa fa-gavel"></i> <span>权限管理</span>
          <span class="pull-right-container">
            <i class="fa fa-angle-left pull-right"></i>
          </span>
        </a>
        <ul class="treeview-menu">
        {if condition="show_auth('admin/AuthRule/index')"}
          <li class="{:class_active('AuthRule','index')? 'active' : ''}"><a href="{:url('admin/AuthRule/index')}"><i class="fa fa-circle-o"></i> 权限列表</a></li>
        {/if}

        {if condition="show_auth('admin/AuthGroup/index')"}
          <li class="{:class_active('AuthGroup','index')? 'active' : ''}"><a href="{:url('admin/AuthGroup/index')}"><i class="fa fa-circle-o"></i> 用户组列表</a></li>
        {/if}

        {if condition="show_auth('admin/AdminUser/index')"}
          <li class="{:class_active('AdminUser','index')? 'active' : ''}"><a href="{:url('admin/AdminUser/index')}"><i class="fa fa-circle-o"></i> 用户列表</a></li>
        {/if}
        </ul>
      </li>
    {/if}



    </ul>
  </section>
  <!-- /.sidebar -->
</aside>
